import request from '@/utils/request'

// 查询商品信息
export function getCmdtInfoList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询商品行情信息
export function getCmdtPriceList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtPriceByPage.action',
        method: 'get',
        params: query
    })
}

export function getFutureInfoList(query) {
    return request({
        url: '/marketdata/futuresController/queryCmdtFutureInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询商品期货信息
export function getCmdtFutureList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtFutureByPage.action',
        method: 'get',
        params: query
    })
}

// 查询商品期货行情信息
export function getCmdtFuturePriceList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtFuturePriceByPage.action',
        method: 'get',
        params: query
    })
}

// 查询商品延期行情信息
export function getCmdtdelPriceList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtelPriceByPage.action',
        method: 'get',
        params: query
    })
}



// 查询商品延期信息
export function getCmdtdelInfoList(query) {
    return request({
        url: '/marketdata/tcmdtController/queryTcmdtdelByPage.action',
        method: 'get',
        params: query
    })
}

// 修改商品行情
export function updateTcmdtPrice(cmdtFrom) {
    return request({
        url: '/marketdata/tcmdtController/updateTcmdtPrice.action',
        method: 'post',
        data: cmdtFrom
    })
}

// 修改商品期货行情
export function updateTcmdtFuturePrice(cmdtFutureFrom) {
    return request({
        url: '/marketdata/tcmdtController/updateTcmdtFuturePrice.action',
        method: 'post',
        data: cmdtFutureFrom
    })
}

// 修改商品延期行情
export function updateTcmdtDelPrice(delayFrom) {
    return request({
        url: '/marketdata/tcmdtController/updateTcmdtDelPrice.action',
        method: 'post',
        data: delayFrom
    })
}
